﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using EC18_ESHOP.Models;

namespace EC18_ESHOP.Controllers
{
    public class CategoryController : Controller
    {
        EShopEntities db = new EShopEntities();
        //
        // GET: /Category/

        public ActionResult Index(int id)
        {
            return View();
        }

        public PartialViewResult LoadCategory()
        {
            var cateList = db.CATEGORY.ToList();
            return PartialView("_CategoryPartial", cateList);
        }
    }
}
